package tests;

import models.Board;
import models.Logic;
import junit.framework.TestCase;


public class VerifierTestGood extends TestCase
{

    public VerifierTestGood(String arg0)
    {
        super(arg0);
    }

    protected void setUp() throws Exception
    {

        int[][] matrix =
        {
            {1, 2, 3, 4, 5, 6, 7, 8, 9},
            {4, 5, 6, 7, 8, 9, 1, 2, 3},
            {7, 8, 9, 1, 2, 3, 4, 5, 6},
            {2, 1, 4, 3, 6, 5, 8, 9, 7},
            {3, 6, 5, 8, 9, 7, 2, 1, 4},
            {8, 9, 7, 2, 1, 4, 3, 6, 5},
            {5, 3, 1, 6, 4, 2, 9, 7, 8},
            {6, 4, 2, 9, 7, 8, 5, 3, 1},
            {9, 7, 8, 5, 3, 1, 6, 4, 2},
        };

        for (int i = 0; i < 9; i++)
            for (int j = 0; j < 9; j++)
                Board.getInstance().setNumber(i, j, matrix[i][j]); //bad case
    }

    public void testing()
    {
        Logic newV = Logic.getInstance();
        assertEquals(newV.verify(), true);
    }

    protected void tearDown() throws Exception
    {
        super.tearDown();
    }

}